package com.itheima.controller;


import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.service.WTPsychologyService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/psychology")
public class WTPsychology {
    @Reference
    private WTPsychologyService wtPsychologyService;
    @RequestMapping("/findAllPsychologyr")
    public PageResult findAllPsychologyr(@RequestBody QueryPageBean queryPageBean){
        return wtPsychologyService.findAllPsychology(queryPageBean);
    }
}
